package cn.calm.swing.osgi.host.ui;
import java.awt.FlowLayout;

import javax.swing.JFrame;
import javax.swing.JMenuBar;

import org.osgi.framework.BundleContext;

/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
public class MainFrame extends JFrame {
	public static String UI_LOOK_AND_FEEL="ui.LookAndFeel";
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	public MainFrame(BundleContext context) {
		setJMenuBar(new JMenuBar());
		this.setSize(650, 700);
		initGUI();
	}
	
	private void initGUI() {
		try {
			FlowLayout thisLayout = new FlowLayout();
			thisLayout.setAlignment(FlowLayout.LEFT);
			thisLayout.setHgap(10);
			getContentPane().setLayout(thisLayout);
		} catch(Exception e) {
			e.printStackTrace();
		}
	}
}
